package com.ruoyi.service.impl;

import com.ruoyi.domain.ZhwyDefaultcharges;
import com.ruoyi.mapper.ZhwyDefaultchargesMapper;
import com.ruoyi.service.ZhwyDefaultchargesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName ZhwyDefaultchargesServiceImpl
 * Description TODO
 * Author JunEr
 * Date 2024年05月08日 16:12
 * Version 1.0
 */
@Service
public class ZhwyDefaultchargesServiceImpl implements ZhwyDefaultchargesService {
@Autowired
private ZhwyDefaultchargesMapper mapper;
    @Override
    public int saveDefaultCharge(ZhwyDefaultcharges zhwyDefaultcharges) {
        return mapper.addDefaultCharge(zhwyDefaultcharges);
    }

    @Override
    public int saveDefaultChargecs(ZhwyDefaultcharges zhwyDefaultcharges) {
        return mapper.addDefaultChargecs(zhwyDefaultcharges);
    }

    @Override
    public int deleteDefaultChargeById(Long id) {
        return mapper.deleteById(id);
    }

    @Override
    public int deleteDefaultChargeByIdcs(Long id) {
        return mapper.deleteByIdcs(id);
    }

    @Override
    public List<Long> selectList() {
        return mapper.selectAll();
    }

    @Override
    public List<Long> selectListcs() {
        return mapper.selectAllcs();
    }
}
